package Message_simulator;
//20230404430920沈泽华
public class SmsEditor {
    public static void main(String[] args) {
        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer.append("Hello,this is a new message");
        System.out.println(stringBuffer);
        stringBuffer.insert(6,"world!");
        System.out.println(stringBuffer);
        stringBuffer.delete(12,22);
        System.out.println(stringBuffer);
        stringBuffer.replace(16,23,"notification");
        System.out.println(stringBuffer);
    }
}